'''Chemical potential''', symbolized by ''μ'', is a quantity first described by the American engineer, chemist and mathematical physicist Josiah Willard Gibbs. In simplest terms, it is an analogue to electric potential and gravitational potential, utilizing the same idea of force fields as being the cause of things moving, be they charges, masses, or, in this case, chemicals. He defined it as follows:     Gibbs noted also that for the purposes of this definition, any chemical element or combination of elements in given proportions may be considered a substance, whether capable or not of existing by itself as a homogeneous body. Chemical potential is also referred to as '''partial molar Gibbs energy''' (see also partial molar property). Chemical potential is measured in units of energy/particle or, equivalently, energy/mole.  The chemical potential is used in thermodynamics, physics and chemistry. In modern statistical physics the chemical potential, divided by the temperature, is the Lagrange multiplier for the average particle constraint, when maximizing the entropy. This is the precise and abstract scientific definition, just like the temperature is defined in terms of the Lagrange multiplier for the average energy constraint.  In some fields (particularly electrochemistry), the term &quot;chemical potential&quot; is used to describe a fundamentally different (but related) concept, namely the &quot;internal chemical potential&quot;; see below for details.  The chemical potential of a system of  electrons is also called the Fermi level.  ==Overview== Diffusion from a microscopic and macroscopic point of view. Initially, there are solute molecules on the left side of a barrier (purple line) and none on the right. The barrier is removed, and the solute diffuses to fill the whole container. Top: A single molecule moves around randomly. Middle: With more molecules, there is a clear trend where the solute fills the container more and more uniformly. Bottom: With an enormous number of solute molecules, all randomness is gone: The solute appears to move smoothly and systematically from high-concentration areas to low-concentration areas following Fick's laws.]]  Particles tend to move from higher chemical potential to lower chemical potential.  In this way, chemical potential is a generalization of &quot;potentials&quot; in physics such as gravitational potential. When a ball rolls down a hill, it is moving from a higher gravitational potential (higher elevation) to a lower gravitational potential (lower elevation). In the same way, as molecules move, react, dissolve, melt, etc., they will always tend naturally to go from a higher chemical potential to a lower one.  A simple example is a system of dilute molecules diffusing in a homogeneous environment (animation at right). In this system, the molecules tend to move from areas with high concentration to low concentration, until eventually the concentration is the same everywhere. The microscopic explanation for this is based in kinetic theory and the random motion of molecules. However, it is simpler to describe the process in terms of chemical potentials: A molecule has a higher chemical potential in a higher-concentration area, and a lower chemical potential in a low concentration area. As always, the molecules move from higher chemical potential to lower chemical potential.  Another example is a glass of liquid water with ice cubes in it. Above 0°C, an H2O molecule has a lower chemical potential as part of the liquid than as part of an ice cube. The ice melts as the H2O molecules lower their chemical potential. Below 0°C, the ice has a lower chemical potential, so the ice cubes grow. At exactly 0°C, the chemical potential for water and ice are the same; the ice cubes will neither grow nor shrink, and the system is in equilibrium.  In electrochemistry, ions do ''not'' always tend to go from higher to lower chemical potential, but they ''do'' always go from higher to lower ''electrochemical potential''. The electrochemical potential completely characterizes all of the influences on an ion's motion, while the chemical potential includes everything ''except'' the electric force. (See below for more on this terminology.)  ==History== In his 1873 paper ''A Method of Geometrical Representation of the Thermodynamic Properties of Substances by Means of Surfaces'' Gibbs introduced the preliminary outline of the principles of his new equation able to predict or estimate the tendencies of various natural processes to ensue when bodies or systems are brought into contact.  By studying the interactions of homogeneous substances in contact, i.e. bodies, being in composition part solid, part liquid, and part vapor, and by using a three-dimensional volume–entropy–internal energy graph, Gibbs was able to determine three states of equilibrium, i.e. &quot;necessarily stable&quot;, &quot;neutral&quot;, and &quot;unstable&quot;, and whether or not changes will ensue.  In 1876, Gibbs built on this framework by introducing the concept of chemical potential so to take into account chemical reactions and states of bodies which are chemically different from each other.  In his own words, to summarize his results in 1873, Gibbs states:   In this description, as used by Gibbs, ''ε'' refers to the internal energy of the body, ''η'' refers to the entropy of the body, and ''ν'' is the volume of the body.  ==Related terms== The precise meaning of the term ''chemical potential'' depends on the context in which it is used.  * When speaking of thermodynamic systems, ''chemical potential'' refers to the ''thermodynamic chemical potential''.  In this context, the chemical potential is the change in a characteristic thermodynamic state function per change in the number of molecules. Depending on the experimental conditions, the characteristic thermodynamic state function is either: ''internal energy'', ''enthalpy'', ''Gibbs energy'', or ''Helmholtz energy''. This particular usage is most widely used by experimental chemists, physicists, and chemical engineers.  * Theoretical chemists and physicists often use the term ''chemical potential'' in reference to the  ''electronic chemical potential'', which is related to the functional derivative of the ''density functional'', sometimes called the ''energy functional'', found in Density Functional Theory.  This particular usage of the term is widely used in the field of ''electronic structure theory''.  * Physicists sometimes use the term ''chemical potential'' in the description of relativistic systems of fundamental particles.  ==Thermodynamic chemical potential==   The chemical potential of a thermodynamic system is the amount by which the energy of the system would change if an additional particle were introduced, with the entropy and volume held fixed. If a system contains more than one species of particle, there is a separate chemical potential associated with each species, defined as the change in energy when the number of particles ''of that species'' is increased by one. The chemical potential is a fundamental parameter in thermodynamics and it is conjugate to the particle number.  The chemical potential is particularly important when studying systems of reacting particles. Consider the simplest case of two species, where a particle of species 1 can transform into a particle of species 2 and vice versa. An example of such a system is a saturated mixture of water liquid (species 1) and water vapor (species 2). If the system is at equilibrium, the chemical potentials of the two species must be equal.  Otherwise,  a net release of energy in the form of heat would occur (see second law of thermodynamics) when the species of higher potential transforms into the other species, and a net gain of energy (again in the form of heat) would occur for the reverse transformation. In chemical reactions, the equilibrium conditions are generally more complicated because more than two species are involved. In this case, the relation between the chemical potentials at equilibrium is given by the law of mass action.  Since the chemical potential is a thermodynamic quantity, it is defined independently of the microscopic behavior of the system, i.e. the properties of the constituent particles. However, some systems contain important variables that are equivalent to the chemical potential. In Fermi gases and Fermi liquids, the chemical potential at zero temperature is equivalent to the Fermi energy. In electronic systems, the chemical potential is related to an effective electrical potential.  A way to understand the chemical potential is to consider one mole of methane and 2 moles of oxygen. If a flame is brought near this mixture, the following reaction will occur: :CH_4 + 2 O_2 \to CO_2 + 2 H_2O \, and energy (heat) will be released. This energy comes from the difference in chemical potential between CH4 and O2 on one hand (higher potential) and CO2 and H2O on the other hand (lower). The whole energy that will be released will be given by :\mu (CH_4) + 2 \mu (O_2) - \mu (CO_2) - 2 \mu (H_2O) \,  Similar examples can be found within batteries where chemical energy is converted into electrical energy.  ===Precise definition=== Consider a thermodynamic system containing ''n'' constituent species. Its total internal energy ''U'' is postulated to be a function of the entropy ''S'', the volume ''V'', and the number of particles of each species ''N1'', ..., ''Nn''  :U=U(S,V,N_1,\ldots,N_n)\,  By referring to ''U'' as the ''internal energy'', it is emphasized that the energy contributions resulting from the interactions between the system and external objects are excluded.  For example, the gravitational potential energy of the system with the Earth are not included in ''U''.  The chemical potential of the ''i''-th species, ''μi'' is defined as the partial derivative  :\mu_i = \left(\frac{\partial U}{\partial N_i} \right)_{S,V, N_{j \ne i}}  where the subscripts simply emphasize that the entropy, volume, and the other particle numbers are to be kept constant.  In real systems, it is usually difficult to hold the entropy fixed, since this involves good thermal insulation. It is therefore more convenient to define the Helmholtz energy ''A'', which is a function of the temperature ''T'', volume, and particle numbers:  :A = A(T,V,N_1,\ldots,N_n)\,  In terms of the Helmholtz energy, the chemical potential is  :\mu_i = \left(\frac{\partial A}{\partial N_i}\right)_{T,V, N_{j \ne i}}  Laboratory experiments are often performed under conditions of constant temperature and pressure.  Under these conditions, the chemical potential is the partial derivative of the Gibbs energy with respect to number of particles  :\mu_i=\left(\frac{\partial G}{\partial N_i}\right)_{T,p,N_{j\neq i}}  A similar expression for the chemical potential can be written in terms of partial derivative of the enthalpy (under conditions of constant entropy and pressure).  Here, the chemical potential has been defined as the energy per molecule. A variant of this definition is to define the chemical potential as the energy per mole.  ==Electronic chemical potential==  The electronic chemical potential is the functional derivative of the density functional with respect to the electron density. :\mu(\mathbf{r})=\left[ \frac{\delta E[\rho]}{\delta \rho(\mathbf{r})}\right]_{\rho=\rho_{\mathrm{ref}}} Formally, a functional derivative yields many functions, but is a particular function when evaluated about a reference electron density—just as a derivative yields a function, but is a particular number when evaluated about a reference point. The density functional is written as :E[\rho] = \int \rho(\mathbf{r})\nu(\mathbf{r})d^3r + F[\rho], where ''ν''('''r''') is the ''external potential'', e.g., the electrostatic potential of the nuclei and applied fields, and ''F'' is the universal functional, which describes the kinetic energy of electrons and electron–electron interactions, e.g. kinetic energy, electron Coulomb repulsion, and the non-classical effects of exchange and correlation. With this general definition of the density functional, the chemical potential is written as :\mu(\mathbf{r}) = \nu(\mathbf{r})+\left[\frac{\delta F[\rho]}{\delta\rho(\mathbf{r})}\right]_{\rho=\rho_{\mathrm{ref}}} Thus, the electronic chemical potential is the effective electrostatic potential experienced by the electron density.  The ground state electron density is determined by a ''constrained'' variational optimization of the electronic energy.  The Lagrange multiplier enforcing the density normalization constraint is also called the chemical potential, i.e., :\delta\left\{E[\rho]-\mu\left(\int\rho(\mathbf{r})d^3r-N\right)\right\}=0 where N is the number of electrons in the system and \mu is the Lagrange multiplier enforcing the constraint.  When this variational statement is satisfied, the terms within the curly brackets obey the property :\left[\frac{\delta E[\rho]}{\delta\rho(\mathbf{r})}\right]_{\rho=\rho_{0}} - \mu \left[\frac{\delta N[\rho]}{\delta\rho(\mathbf{r})}\right]_{\rho=\rho_{0}}=0 where the reference density is the density that minimizes the energy.  This expression simplifies to :\left[\frac{\delta E[\rho]}{\delta\rho(\mathbf{r})}\right]_{\rho=\rho_{0}}=\mu The Lagrange multiplier enforcing the constraint is, by construction, a constant; however, the functional derivative is, formally, a function.  Therefore, when the density minimizes the electronic energy, the chemical potential has the same value at every point in space.  The gradient of the chemical potential is an effective electric field.  An electric field describes the force per unit charge as a function of space.  Therefore, when the density is the ground state density, the electron density is stationary, because the gradient of the chemical potential (which is invariant with respect to position) is zero everywhere, i.e., all forces are balanced.  As the density undergoes a change from a non-ground state density to the ground state density, it is said to undergo a process of chemical potential equalization.  The chemical potential of an atom is sometimes said to be the negative of the atom's electronegativity.  Similarly the process of chemical potential equalization is sometimes referred to as the process of ''electronegativity equalization''.  This connection comes from the Mulliken definition of electronegativity.  By inserting the energetic definitions of the ionization potential and electron affinity into the Mulliken electronegativity, it is possible to show that the Mulliken chemical potential is a finite difference approximation of the electronic energy with respect to the number of electrons., i.e., :\mu_{\mathrm{Mulliken}}=-\chi_{\mathrm{Mulliken}}=-\frac{IP+EA}{2}=\left[\frac{\delta E[N]}{\delta N}\right]_{N=N_0} where ''IP'' and ''EA'' are the ionization potential and electron affinity of the atom, respectively.  ==The values of the chemical potential==  For standard conditions (''T'' = 298.15 K; ''p'' = 1 atm) the values of the chemical potential are tabulated, see under &quot;External links&quot;. If the chemical potential is known in a certain state  (e.g. for standard conditions), then it can be calculated in linear approximation for pressures and temperatures in the vicinity of this state: :\mu (T) = \mu (T_0) + \alpha (T - T_0) \, and :\mu (p) = \mu (p_0) + \beta (p - p_0) \, Here  : 	\alpha         = 	\left( 		\frac{\partial \mu}{\partial T}  	\right)_{p,n}   is the temperature coefficient and  : 	\beta         =\left( 		\frac{\partial \mu}{\partial p}  	\right)_{T,n}   is the pressure coefficient.  With the Maxwell relations  : 	\left( 		\frac{\partial \mu}{\partial T}  	\right)_{p,n}         =- 	\left( 		\frac{\partial S}{\partial n}  	\right)_{T,p}   and  : 	\left( 		\frac{\partial \mu}{\partial p}  	\right)_{T,n}         = 	\left( 		\frac{\partial V}{\partial n}  	\right)_{T,p}   it follows that the temperature coefficient is equal to the negative molar entropy and the pressure coefficient is equal to the molar volume.  ==Fundamental particle chemical potential==  In recent years, thermal physics has applied the definition of chemical potential to systems in particle physics and its associated processes.  In general, chemical potential measures the tendency of particles to diffuse.  This characterization focuses on the chemical potential as a function of spatial location.  Particles tend to diffuse from regions of high chemical potential to those of low chemical potential.  Being a function of internal energy, chemical potential applies equally to both fermion and boson particles.  That is, in theory, any fundamental particle can be assigned a value of chemical potential, depending upon how it changes the internal energy of the system into which it is introduced.  The application of chemical potential concepts for systems at absolute zero has significant appeal.  For relativistic systems (i.e., systems in which the rest mass is much smaller than the equivalent thermal energy) the chemical potential is related to symmetries and charges.  Each conserved quantity is associated with a chemical potential.  In a gas of photons in equilibrium with massive particles, the number of photons is not conserved, and so in this case, the chemical potential is zero. Similarly, for a gas of phonons, there is also no chemical potential. However, if the temperature of such a system were to rise above the threshold for pair production of electrons, then it might be sensible to add a chemical potential for the electrical charge. This would control the electric charge density of the system, and hence the excess of electrons over positrons, but not the number of photons. In the context in which one meets a phonon gas, temperatures high enough to pair produce other particles are seldom relevant. QCD matter is the prime example of a system in which many such chemical potentials appear.  ==Internal, external, and total chemical potential==  When there is a chemical potential difference between two locations, some of it may be due to potentials associated with &quot;external&quot; force fields (Electric potential energy differences, gravitational potential energy differences, etc.), while the rest would be due to &quot;internal&quot; factors (density, temperature, etc.)''[ Thermal Physics]'' by Kittel and Kroemer, second edition, page 124. The true chemical potential, also called '''total chemical potential''', can be split into '''internal chemical potential''' and '''external chemical potential''' :\mu_{\mathrm{tot}} = \mu_{\mathrm{int}} + \mu_{\mathrm{ext}} \, where :\mu_{\mathrm{ext}} = qV + mgh + \cdots i.e., the external potential is the sum of electric potential, gravitational potential, etc. (q and m are the charge and mass of the species, respectively, V and h are the voltage and height of the container, respectively, and g is the acceleration due to gravity.)  Although the phrase &quot;chemical potential&quot; usually refers to &quot;total chemical potential&quot;, this is not universally observed. In some fields, particularly electrochemistry, the term &quot;chemical potential&quot; is instead used to mean ''internal'' chemical potential, while the term electrochemical potential is used to mean ''total'' chemical potential.See, for example, ''Electrochemical Methods'' by Bard and Faulkner, 2nd edition, Section 2.2.4(a),4-5. Confusingly, in solid-state physics, precisely the opposite convention is often used in the context of electrons, with &quot;chemical potential&quot; meaning total chemical potential, and &quot;electrochemical potential&quot; meaning internal chemical potential.See, for example, ''Solid State Physics'' by Ashcroft and Mermin, page 593.  